﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp9
{
    class Animal
    {
        private string name;
        public string Name { get; set; }
        public Animal(string name)
        {
            this.name = name;
        }
        public void eat() 
        {
            Console.WriteLine("我的名字是{0}我能吃",this.name);
        }

    }
}
